/* Copyright 2012 Dustin Mitchell <dmmitche [at] gmail [dot] com>
 *
 * Licensed under the GPLv3.  See included LICENSE.txt for full details.
 */

#include "bone_hw_modules.h"
#include "clock.h"
#include "pin_mux.h"
#include "uart.h"

struct hw_module BONE_HW_MODULES[BONE_HW_NUM_MODULES] = {
  {
    .clock = CLOCK_UART1,
    .pin_mux_name = "something",
    .pin_mux_mode = PIN_MUX_MODE1
  },
  {
    .clock = CLOCK_UART2,
    .pin_mux_name = "something",
    .pin_mux_mode = PIN_MUX_MODE1
  },
  {
    .clock = CLOCK_UART3,
    .pin_mux_name = "something",
    .pin_mux_mode = PIN_MUX_MODE1
  },
  {
    .clock = CLOCK_UART4,
    .pin_mux_name = "something",
    .pin_mux_mode = PIN_MUX_MODE1
  }
};

struct uart_hw_module BONE_UART_MODULES[BONE_UART_NUM_MODULES] = {
  {
    .hw = &BONE_HW_MODULES[BONE_HW_UART1],
    .dev_path = "/dev/ttyS0"
  },
  {
    .hw = &BONE_HW_MODULES[BONE_HW_UART2],
    .dev_path = "/dev/ttyS1"
  },
  {
    .hw = &BONE_HW_MODULES[BONE_HW_UART3],
    .dev_path = "/dev/ttyS2"
  },
  {
    .hw = &BONE_HW_MODULES[BONE_HW_UART4],
    .dev_path = "/dev/ttyS3"
  }
};
